package com.health.ts.webservice.impl;
 
import java.util.Date;

import javax.jws.WebService;

import org.springframework.stereotype.Service;

import com.health.ts.webservice.DemoService;
 
@WebService(serviceName = "demoService", // 与接口中指定的name一致
        targetNamespace = "http://service.css.com", // 与接口中的命名空间一致,一般是接口的包名倒
        endpointInterface = "com.health.ts.webservice.DemoService"// 接口地址
)
@Service
public class DemoServiceImpl implements DemoService {
 
    @Override
    public String sayHello(String user) {
        return user+"，现在时间："+"("+new Date()+")";
    }
 
}